package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @description: 市属企业工资总额本部职工明细主表
 * @author: gangan
 * @create: 2020-05-27 19:09
 */
@Data
@TableName("pf_base_salary_detail")
@EqualsAndHashCode(callSuper = true)
public class BaseSalaryDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 单据编码
     */
    private String code;

    /**
     * 填报年月
     */
    private String fillingMonth;

    /**
     * 填报年度
     */
    private String fillingYear;

    /**
     * 填报日期
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    private Date fillingDate;

    /**
     * 填报单位
     */
    private String fillingUnitId;

    /**
     * 审批人
     */
    private String approvedUser;

    /**
     * 审批时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    private Date approvedTime;

    /**
     * 审批意见
     */
    private String approvedOpinion;

    /**
     * 流程实例id
     */
    private String formType;

    @TableField(exist = false)
    private List<SalaryDetail> salaryDetails;
}
